package com.excerise.computer;

/**
 *
 *
 * @author Way on 2021/7/23
 */
public class CpuInfo {
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        // 获取当前电脑的核总数
        System.out.println(runtime.availableProcessors());
    }
}
